﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="complaintList.aspx.cs"
    Inherits="PeisongWeb.admin.complaintlist" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>投诉管理</title>
    <!--#include file="style.inc"-->

    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("ddl_buyer").value = "";
            document.getElementById("ddl_seller").value = "";
            document.getElementById("ext_StartInputDt").value = "";
            document.getElementById("ext_EndInputDt").value = "";
            document.getElementById("ddl_ctype").value = "";
            document.getElementById("ddl_department").value = "";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
    </asp:ScriptManager>
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            投诉管理列表
        </h2>
        <span style="<%=power>=2?"": "display:none" %>">
            <ext:Button runat="server" ID="Button1" Icon="Add" Text="新增投诉" OnClientClick="window.location.href='complaintEdit.aspx'">
            </ext:Button>
        </span>
        <p>
            &nbsp;</p>
        <ext:Panel ID="Panel1" runat="server" Title="订单搜索" BodyStyle="padding:5px 5px 0"
            Width="1300px" Frame="true" ButtonAlign="Center">
            <Body>
                <div id="admin_edit_content_search">
                    <ul>
                        <li style="width: auto; margin-right: 20px">
                            <label>
                                客户名称
                            </label>
                            <asp:DropDownList ID="ddl_buyer" runat="server" DataTextField="company" DataValueField="companyId"
                                Width="200px">
                            </asp:DropDownList>
                        </li>
                        <li style="width: 160px; margin-right: 20px">
                            <label>
                                责任部门
                            </label>
                            <asp:DropDownList ID="ddl_department" runat="server" DataTextField="department" DataValueField="dId"
                                Width="100px">
                            </asp:DropDownList>
                        </li>
                        <li style="width: auto; margin-right: 20px">
                            <label>
                                投诉类别
                            </label>
                            <asp:DropDownList ID="ddl_ctype" runat="server" DataTextField="ctName" DataValueField="ctId">
                            </asp:DropDownList>
                        </li>
                        <li style="width: 162px">
                            <label>
                                投诉日期</label>
                            <ext:DateField ID="ext_StartInputDt" runat="server" AllowBlank="true" ReadOnly="true"
                                Width="100px" />
                        </li>
                        <li style="width: 160px;">
                            <label style="width: 25px">
                                至
                            </label>
                            <ext:DateField ID="ext_EndInputDt" ReadOnly="true" runat="server" Width="100px" />
                        </li>
                        <li style="width: auto; margin-right: 10px">
                            <asp:LinkButton ID="lbt_select" runat="server" OnClick="lbt_select_Click">[搜索]</asp:LinkButton>
                            [<a href="javascript:resetSrh();">重 置</a>] </li>
                        <li style="width: auto;">
                            <ext:LinkButton ID="lbn_importall" runat="server" Icon="PageExcel" Text="【导出Excel】" OnClick="lbt_importall_Click" AutoPostBack="true"></ext:LinkButton>
                        </li>
                        <li style="width: auto; margin-right: 20px">
                            <label>
                                供 应 商
                            </label>
                            <asp:DropDownList ID="ddl_seller" runat="server" DataTextField="company" DataValueField="companyId"
                                Width="200px">
                            </asp:DropDownList>
                        </li>
                    </ul>
                </div>
            </Body>
        </ext:Panel>
        <p>
            &nbsp;</p>
        <div id="admin_list_content" style="width: 1300px">
            <table cellpadding="0" cellspacing="0">
                <tr class="header-row" style="text-align: center">
                    <th style="text-align: center">
                        投诉日期
                    </th>
                    <th style="text-align: center">
                        客户名称
                    </th>
                    <th style="text-align: center">
                        投诉产品
                    </th>
                    <th style="text-align: center">
                        投诉类别
                    </th>
                    <th style="text-align: center">
                        责任部门
                    </th>
                    <th style="text-align: center">
                        责任人
                    </th>
                    <th style="text-align: center">
                        责任供应商
                    </th>
                    <th style="text-align: center">
                        严重级别
                    </th>
                    <th style="text-align: center">
                        录入人
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                <asp:Repeater ID="rpt_list" runat="server">
                    <ItemTemplate>
                        <tr class='<%# Container.ItemIndex%2==0? "row-alt":"alt"  %>'>
                            <td style='width: 8%;' height="26" align="center">
                                <%#Eval("complaintDt")%>
                            </td>
                            <td width="20%" height="26" align="center">
                                <%#Eval("buyername")%>
                            </td>
                            <td width="10%" height="26" align="center">
                                <%#Eval("productname")%>
                            </td>
                            <td width="12%" height="10" align="center">
                                <%# Eval("complaintname")%>
                            </td>
                            <td width="12%" height="26" align="center">
                                <%#Eval("department")%>
                            </td>
                            <td width="5%" height="10" align="center">
                                <%# Eval("responsibler")%>
                            </td>
                            <td width="10%" height="26" align="center">
                                <%# Eval("sellername")%>
                            </td>
                            <td width="8%" height="10" align="center">
                                <%# Eval("levelname")%>
                            </td>
                            <td width="7%" height="10" align="center">
                                <%#Eval("inputname")%>
                            </td>
                            <td width="5%" height="10" align="center">
                                <a href="complaintEdit.aspx?cid=<%# Eval("complaintid") %>">修改</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div id="page">
                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                    OnPageChanged="AspNetPager1_PageChanged" runat="server" AlwaysShow="True" PageSize="20"
                    InvalidPageIndexErrorMessage="无效页码" PageIndexOutOfRangeErrorMessage="页码超出范围"
                    ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                    CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页" FirstPageText="首页"
                    LastPageText="末页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
